package cn.gson.school.dao.xitong;

import java.util.List;
import java.util.Set;

import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import cn.gson.school.entity.xitong.ResourcesEntity;

@Repository
public interface ResourcesDao extends CrudRepository<ResourcesEntity, Long> {

	List<ResourcesEntity> findAllByEnableAndParentIsNull(boolean enable);

	Set<ResourcesEntity> findAllByEnableOrderByWeightDesc(boolean enable);

	List<ResourcesEntity> findAllByParentIsNull();


}
